<?php
/**
 * Created by PhpStorm.
 * User: Dave
 * Date: 2018/7/27
 * Time: 19:05
 */

namespace Biz\pockets\constInterface;

interface ActivityInfo
{
    // 验证器所需常量 start
    const _CONST_ACTIVITY_TYPE_PREFIX = 'ALL_ACTIVITY_TYPE_';
    const ALL_ACTIVITY_TYPE_FLASH_SALE = 'flash_sale';
    const ALL_ACTIVITY_TYPE_WEEK_PURCHASE = 'week_purchase';
    const ALL_ACTIVITY_TYPE_TUAN = 'tuan';
    const ALL_ACTIVITY_TYPE_NEWCOMER_EXCLUSIVE = 'newcomer_exclusive';
    const ALL_ACTIVITY_TYPE_PINTUAN = 'pintuan';
    const ALL_ACTIVITY_TYPE_JINTIE = 'jintie';

    // 验证器所需常量 end

    const ACTIVITY_TYPE_NORMAL = 0;
    const ACTIVITY_TYPE_LIMIT_TIME_ROB = 1;
    const ACTIVITY_TYPE_FULL_SHIPPING = 2;
    const ACTIVITY_TYPE_ADDRESS_FREE = 3;
    const ACTIVITY_TYPE_NEW = 4;
    const ACTIVITY_TYPE_MEAL = 5;
    const ACTIVITY_TYPE_WEEK_PURCHASE = 6;
    const ACTIVITY_TYPE_TUAN = 7;
    const ACTIVITY_TYPE_NEWCOMER_EXCLUSIVE = 8;
    const ACTIVITY_TYPE_PINTUAN = 9;
    const ACTIVITY_TYPE_ZHUYOUJINTIE = 10;


    const ACTIVITY_TYPES_MAPS = [
        self::ACTIVITY_TYPE_NORMAL => '无活动',
        self::ACTIVITY_TYPE_LIMIT_TIME_ROB => "限时购",
        self::ACTIVITY_TYPE_FULL_SHIPPING => "满包邮",
        self::ACTIVITY_TYPE_ADDRESS_FREE => "地区包邮",
        self::ACTIVITY_TYPE_NEW => "新品",
        self::ACTIVITY_TYPE_MEAL => '套餐',
        self::ACTIVITY_TYPE_WEEK_PURCHASE => '周末购',
        self::ACTIVITY_TYPE_TUAN => '团购',
        self::ACTIVITY_TYPE_NEWCOMER_EXCLUSIVE => '新人专享',
        self::ACTIVITY_TYPE_PINTUAN => '拼团',
        self::ACTIVITY_TYPE_ZHUYOUJINTIE => '住友津贴',
    ];

    const ACTIVITY_TYPE_LIMIT_TIME_ROB_MAP = [
        self::ACTIVITY_TYPE_LIMIT_TIME_ROB => "限时购",
        self::ACTIVITY_TYPE_ZHUYOUJINTIE => '住友津贴',
    ];

    const ICON_DISCOUNT_URL = "http://img.hhz1.cn/Op-imageShow/31c71303u02000000p5vtwv?iv=1"; //优惠
    const ICON_SHIPPING_FREE = "http://img.hhz1.cn/Op-imageShow/e764a302o0100HO00pifkvn?iv=1"; //包邮
    const ICON_FULL_SHIPPING = "http://img.hhz1.cn/Op-imageShow/f1609302o0100EW00pifkvn?iv=1"; // 满包邮
    const ICON_LIMIT_TIME_ROBBING = "http://img.hhz1.cn/Op-imageShow/0c5a3302o0100LY00pifkvn?iv=1"; //限时抢
    const ICON_NEW_GOODS = "http://img.hhz1.cn/Op-imageShow/11b66302o0100op00pifkvo?iv=1"; //新品
    const ICON_NEWCOMER_EXCLUSIVE  = "http://img.hhz1.cn/Op-imageShow/b9da0302o01000000phcs8a?iv=1"; // 新人价

    const ACTIVITY_ICON_MAP = [
        self::ACTIVITY_TYPE_LIMIT_TIME_ROB => self::ICON_LIMIT_TIME_ROBBING,
        self::ACTIVITY_TYPE_FULL_SHIPPING => self::ICON_FULL_SHIPPING,
        self::ACTIVITY_TYPE_ADDRESS_FREE => self::ICON_SHIPPING_FREE,
        self::ACTIVITY_TYPE_NEW => self::ICON_NEW_GOODS,
        self::ACTIVITY_TYPE_NEWCOMER_EXCLUSIVE => self::ICON_NEWCOMER_EXCLUSIVE,
    ];

    //SKU需要验证的活动列表
    const SKU_CHECK_MAP = [
        self::ACTIVITY_TYPE_LIMIT_TIME_ROB, //限时购
        self::ACTIVITY_TYPE_WEEK_PURCHASE,  //周末购
        self::ACTIVITY_TYPE_TUAN,           //拼团
        self::ACTIVITY_TYPE_NEWCOMER_EXCLUSIVE, //新人专享
        self::ACTIVITY_TYPE_PINTUAN, //拼团
    ];
}